package com.fs.user.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Size;

@Data
@ApiModel(description = "登录表单实体")
public class UserLoginFormDTO {
    @ApiModelProperty("用户名")
    @Size(min = 2, max = 20, message = "用户名长度必须在2-20之间")
    private String username;

    @ApiModelProperty("密码")
    @Size(min = 3, max = 20, message = "密码长度必须在3-20之间")
    private String password;

//    @ApiModelProperty(value = "是否记住我", required = false)
//    private Boolean rememberMe = false;
}
